package com.cndw.kungfu.domain;

import com.cndw.kungfu.model.Context;

/**
 * 升级需要的经验
 * @author fantadust [9677889@qq.com]
 * @date 2011-8-9 下午3:06:42
 */
public class LevelUpgrade {
	/**
	 * 等级
	 */
	private int level;
	/**
	 * 角色升级需要经验
	 */
	private long playerExp;

	/**
	 * 徒弟升级需要经验
	 */
	private long discipleExp;
	/**
	 * 宠物升级需要的经验
	 */
	private long petExp;
	
	private int discipleMax;
	
	private int campMax;
	
	public LevelUpgrade(){
		
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public long getPlayerExp() {
		return playerExp;
	}
	public void setPlayerExp(long playerExp) {
		this.playerExp = playerExp;
	}
	public long getDiscipleExp() {
		return discipleExp;
	}
	public void setDiscipleExp(long discipleExp) {
		this.discipleExp = discipleExp;
	}
	
	public int getDiscipleMax() {
		return discipleMax;
	}
	public void setDiscipleMax(int discipleMax) {
		this.discipleMax = discipleMax;
	}
	public int getCampMax() {
		return campMax;
	}
	public void setCampMax(int campMax) {
		this.campMax = campMax;
	}
	
	
	public long getPetExp() {
		return petExp;
	}
	public void setPetExp(long petExp) {
		this.petExp = petExp;
	}
	public static LevelUpgrade getByLevel(int level){
		LevelUpgrade levelUpgrade = Context.getCacheCenter().getLevelUpgrade(level);
		if (levelUpgrade == null) {
			levelUpgrade = new LevelUpgrade();
		}
		return levelUpgrade;
	}
	
}
